package day06;

public class Car {
    //成员属性
    //成员方法
    private String color;

    private String brand;

    private double price;

    public Car(){

    };

    public Car(String brand){
        this.brand = brand;
    };

    public Car(String color,String brand,double price){
        this.color = color;
        this.brand = brand;
        this.price = price;
    }

    //前进 后退 转弯 输出
    public void Forward(){
        System.out.println("前进");
    }

    public void Backward(){
        System.out.println("后退");
    }
    public void Turn(){
        System.out.println("转弯");
    }

    public void show(){
        System.out.println(color + brand + "正在前进");
        System.out.println(color + brand + "正在后退");
        System.out.println(color + brand + "正在转弯");
    }
    
}
